import re

result=re.match('wangdao','wangdao.cn')
if result:
    print(result.group())
